package com.jd.controller;

import com.common.model.Result;
import com.jd.model.ShelvesTaskCondition;
import com.jd.service.JDShelvesTaskService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *  JD商品上架任务管理
 */
@RestController
public class JDShelvesTaskController {

	private static Logger LOG = LoggerFactory.getLogger(JDShelvesTaskController.class);

	@Autowired
	private JDShelvesTaskService jdShelvesTaskService;

	@RequestMapping("/common/shelvestasks")
	public Result applies(@ModelAttribute ShelvesTaskCondition condition) {
		return  jdShelvesTaskService.loadTasks(condition);
	}

}
